package com.zenith.yasoo.security;

import org.springframework.transaction.annotation.Transactional;

import com.zui.base.EntityManager;

/**
 * 负责整个User模块内的业务.
 * 
 * 用@Transactional注明类里的每个方法都用事务的,对只读方法注明readOnly=true加强性能.
 * 
 * @author calvin
 */
@Transactional
public interface UserManager extends EntityManager<User, Long>{

	@Transactional(readOnly = true)
	public User getUser(Long id);

	@Transactional(readOnly = true)
	public User getUserByLoginName(String loginName);

}
